package com.cjt.chat.pojo;

import java.math.BigInteger;
import java.util.Date;

/**
 * @author cjt
 * @since 2024/3/27
 */
public class Message {
    //消息id
    private Integer messageId;
    //消息来源
    private Integer from;
    //消息接收方
    private Integer to;
    //消息内容
    private String message;
    //消息发出时间
    private Long messageTime;
    //经过转换的时间
    private String dateFormat;
    //消息类型
    private String messageType;
    //是否接收到消息
    private Boolean receive;

    public Integer getMessageId() {
        return messageId;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public Integer getFrom() {
        return from;
    }

    public void setFrom(Integer from) {
        this.from = from;
    }

    public Integer getTo() {
        return to;
    }

    public void setTo(Integer to) {
        this.to = to;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Long getMessageTime() {
        return messageTime;
    }

    public void setMessageTime(Long messageTime) {
        this.messageTime = messageTime;
    }

    public String getDateFormat() {
        return dateFormat;
    }

    public void setDateFormat(String dateFormat) {
        this.dateFormat = dateFormat;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public Boolean getReceive() {
        return receive;
    }

    public void setReceive(Boolean receive) {
        this.receive = receive;
    }

    @Override
    public String toString() {
        return "Message{" +
                "messageId=" + messageId +
                ", from=" + from +
                ", to=" + to +
                ", message='" + message + '\'' +
                ", messageTime=" + messageTime +
                ", dateFormat='" + dateFormat + '\'' +
                ", messageType='" + messageType + '\'' +
                ", receive=" + receive +
                '}';
    }
}
